<html>
<head>
<title>Message</title>
<script type="text/javascript"
	src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
	function sendMessage() {
		jQuery.post("rest/xmppmessager/send", null, function(result) {
			$("#testDiv").html(result);
		});
	}
</script>
</head>
<body>
	<h1>Modurity Demo - Message</h1>

	<p>
		<a href="#" onclick="sendMessage(); return false;">sendMessage</a>
	</p>

	<h2>
		<div id="testDiv" />
	</h2>

</body>
</html>